<!DOCTYPE html>
<html lang="bg">
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#" >
<meta property="fb:app_id" content="<?php echo FB_APP_ID; ?>">
<meta property="og:type" content="website">
<meta property="og:url" content="<?php echo base_url(); ?>">
<meta property="og:image" content="<?php echo FB_SHARE_PIC; ?>">
<meta property="og:title" content="<?php echo FB_APP_TITLE; ?>">
<meta property="og:description" content="<?php echo FB_APP_DESCRIPTION?>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" >
<title>ТийНЕТ парламент</title>
<?php  $base_url = $this->config->item('base_url'); ?>
<?php
  $js_globals = 'var globals = '. json_encode(
    array(
      'site_url' => site_url(),
      'base_url' => base_url(),
    )
  ) .';';
?>
<script type="text/javascript"><?php echo $js_globals ?></script>
<script src="<?php echo base_url();?>js/jquery-1.8.2.min.js" type="text/javascript"></script>
<script src="<?php echo base_url();?>js/colorbox/colorbox/jquery.colorbox-min.js" type="text/javascript"></script>
<script src="<?php echo base_url();?>js/app_wide.js?<?php echo time(); ?>" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>css/styles.css?<?php echo time(); ?>" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>css/colorbox.css" media="screen" />
</head>
<body>
<?php
//$ses_user=$this->session->userdata('user_id');
//var_dump($ses_user);

	?>
<div id="fb-root"></div>
<script>

	function resize_app() {
    if (typeof FB != 'undefined' && typeof FB.Canvas != 'undefined') {
    	FB.Canvas.setSize();
    }
	}

  window.fbAsyncInit = function() {
    // init the FB JS SDK
    FB.init({
      appId      : '<?php echo FB_APP_ID; ?>', // App ID from the App Dashboard
      status     : true, // check the login status upon init?
      cookie     : true, // set sessions cookies to allow your server to access the session?
      xfbml      : true  // parse XFBML tags on this page?
    });
    FB.getLoginStatus(function (response) {}, true );
    resize_app();
    FB.Canvas.setAutoGrow(500);
    // Additional initialization code such as adding Event Listeners goes here

  };

  // Load the SDK's source Asynchronously
  (function(d, debug){
     var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
     if (d.getElementById(id)) {return;}
     js = d.createElement('script'); js.id = id; js.async = true;
     js.src = "//connect.facebook.net/en_US/all" + (debug ? "/debug" : "") + ".js";
     ref.parentNode.insertBefore(js, ref);
   }(document, /*debug*/ false));

  //window.setInterval(resize_app, 2000);
</script>

  <div id="header">
    <div class="tos-link-section"><?php echo anchor('tab/tos', 'Условия за участие', array('class' => 'tos-link')); ?></div>
    <div class="learn-more-link-section"><?php echo anchor('tab/learn_more', 'Научи повече', array('class' => 'learn-more-link')); ?></div>
    <div id="like-us-text">Харесай страницата!</div>
    <div class="clear-both"></div>
  </div>
  <div id="content">